package paquete;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;

 
@SuppressWarnings({ "serial", "unused" })
public class LogoutAction extends com.opensymphony.xwork2.ActionSupport {
 
    public String execute() throws Exception { 
    	HttpServletRequest request = ServletActionContext.getRequest();
	 	HttpSession sesion = request.getSession();
	 	sesion.removeAttribute("administrador");
        return SUCCESS;
    }
 
}